package com.example.wlzz.enums;

import lombok.Getter;

/**
 * Created by 楠尼玛
 * 2018-03-31
 */
@Getter
public enum ResultEnum {   //该项目的具体结果
    SUCCESS(0, "成功"),
    ERROR(400,"获取验证失败"),
    REGISTER_ERROE(401,"注册失败"),
    COOKIE_FAIL(402,"cookie 失效"),
    REDIS_FAIL(403,"该手机号码还没有获取验证码"),
    UNKNOW(404,"未知平台"),
    PHONE_NO_ONLY(405,"手机号码不一致"),
    CODE_NO_ONLY(406,"验证码输入错误"),
    PHONE_REPEAT(407,"手机号码已被注册"),
    PHONE_ERROR(408,"手机号码格式错误"),
    PHONE_COOLING(409,"手机号获取验证码频繁,限时60秒中"),
    PHONE_NOT_EXIST(410,"手机号码不存在"),
    LOGIN_ERROR(411,"账号或者密码错误"),
    CODE_ERROR(412,"验证码输入错误"),
    TYPE_ERROR(413,"类型选择错误"),
    SNO_ERROR(414,"登陆失败，可能账号密码错误，请刷新验证码重试"),
    ERROR_PLAT(415,"未知错误"),
    GET_CLASS_ERROR(416,"获取课程表失败，请刷新验证码重试"),
    GET_MAJOR_ERROR(417,"获取专业失败"),
    TOKEN_ERROR(418,"token没有获取"),
    LOGIN_SCHOOL_ERROR(419,"登陆教务系统失败，可能您的账号密码错误"),
    NO_LOGIN(420,"未登陆"),
    ALTER_BIRTH_ERROR(421,"修改个人信息(生日)失败"),
    UPLOAD_IMG_ERROR(422,"上传图片失败"),
    USER_NO_EXIST(423,"用户不存在"),
    USERINFO_NO_EXIST(423,"用户信息不存在"),
    SNO_NO_EXIST(424,"学号不存在"),
    TASK_ERROR(425,"任务上传失败"),
    APPLY_FRIENDED(426,"该申请未处理,请等待对方处理后重试"),
    FRIENDED(427,"对方已是您的好友了"),
    FRIEND_FOR_SELF(428,"您不能添加自己为好友"),
    SCHOOL_NAME_NULL(429,"您未完善所在学校的信息"),
    TASK_NO_EXIST(430,"任务不存在"),
    TASK_ILLEGAL(431,"您对该任务进行了非法操作"),
    COMMENT_NO_EXIST(432,"该评论不存在"),
    IIIEGAL_ACTION(433,"非法操作，您不可以操作不属于您的数据"),
    DELETE_FAIL(434,"删除失败，该内容可能不存在"),
    RECEVICE_MYSELF(435,"您不可以接受自己创建的任务"),
    RECEVICE_ERROR_STATUS(436,"该任务现在的状态不可执行此操作"),
    TASK_DELETE_STATUS(437,"任务的状态已不能删除"),
    TASK_CANCEL_DELAY(438,"任务接单已超过5分钟已无法取消"),
    NO_RECEVICE_TASK(439,"该任务您未接单"),
    TASK_REPEAT_RECEVICE(440,"您已经接受过该任务,系统将不允许您再次接受"),
    RECEVICE_MANY(441,"您不可以同时接超过1个未完成的任务"),
    LOVE_TASK_EXIST(442,"您已点赞过了"),
    LOVE_NO_EXIST(443,"亲，您还没有点赞呢！"),
    NO_FRIEND_APPLY(444,"该好友申请不存在无法处理"),
    FRIEND_APPLY_ERROR(445,"该好友申请的状态不允许此操作。"),
    SCHOOL_NO_EXIST(446,"学校不存在或者未开发"),
    TASK_SUCCES_TIME(438,"任务接单超过3分钟才可点击完成"),
    GET_DEPARTMENT_ERROR(439,"获取院系失败"),
    SCHOOL_NAME_NXIST(440,"您还没有完善学校的信息，您完善后再进行此操作"),
    SUCCESS_TASK_ERROR(441,"您不是接单者，无法完成任务"),
    ONLINE_REPEAT(442,"您有新的上线,导致您的连接断开"),
    MODIFY_PASSWORD_ERROR(443,"修改密码失败"),
    BANNER_ERROR(444,"上传轮播图信息错误"),
    CODE_NO_EXIST(445,"验证码失效了，请重新获取或者重新登录"),
    DATA_ERROR(446,"参数错误或者参数格式不正确"),
    NAN_SCHOOL(447,"南京信息的小伙伴请耐心等待工程师开发"),
    LOVEWALL_NO_EXIST(430,"该表白墙不存在"),
      ;
    private Integer code;

    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
